package com.ls.lserp.modules.sys.entity;

import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.google.common.collect.Lists;
import com.ls.lserp.common.persistence.DataEntity;

public class Shop extends DataEntity<Shop>{
    
    // 机构ID
    private Long ognizationId;
    
    // 店铺名称
    private String shopName;
    
    // 店铺编号
    private String shopCode;
    
    // 店铺简介
    private String shopDiscribe;
    
    // 店铺标识图片路径
    private String shopLogo;
    
    // 所在国家(value)
    private String shopCountry;
    
    // 所在国家(name)
    private String shopCountryName;
    
    // 所在城市(value)
    private String shopCity;
    
    // 所在城市(name)
    private String shopCityName;
    
    // 店铺地址
    private String shopAddress;
    
    // 店铺法人
    private String legalPerson;
    
    // 开户行名称
    private String bankName;
    
    // 开户行账户
    private String bankAccountNo;
    
    // 联系人
    private String contactPerson;
    
    // 联系电话
    private String contactPhone;
    
    // 联系传真
    private String contactFax;
    
    // 联系邮箱
    private String contactEmail;
    
    // 管理员ID
    private String contactPersonId;
    
    // 旧店铺名
    private String oldShopName;
    // 
    private User user;
    
    private String errFlag;
    
    private List<String> styleLCodeList=Lists.newArrayList();//用户款式列表
    
    // 账号余额
    private String accoutSum;
    
    public Shop() {
        super();
    }
    
    public Shop(Long id, String shopName){
        super(id);
        this.shopName = shopName;
    }
    
    public List<String> getStyleLCodeList() {
        return styleLCodeList;
    }

    public void setStyleLCodeList(List<String> styleLCodeList) {
        this.styleLCodeList = styleLCodeList;
    }

    public String getStyleCodes() {
        return StringUtils.join(getStyleLCodeList(), ",");
    }
    
    public void setStyleCodes(String styleCodes) {
        styleLCodeList = Lists.newArrayList();
        if (styleCodes != null){
            String[] ids = StringUtils.split(styleCodes, ",");
            setStyleLCodeList(Lists.newArrayList(ids));
        }
    }
    
    public Long getOgnizationId() {
        return ognizationId;
    }

    public void setOgnizationId(Long ognizationId) {
        this.ognizationId = ognizationId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getShopCode() {
        return shopCode;
    }

    public void setShopCode(String shopCode) {
        this.shopCode = shopCode;
    }

    public String getShopDiscribe() {
        return shopDiscribe;
    }

    public void setShopDiscribe(String shopDiscribe) {
        this.shopDiscribe = shopDiscribe;
    }

    public String getShopLogo() {
        return shopLogo;
    }

    public void setShopLogo(String shopLogo) {
        this.shopLogo = shopLogo;
    }

    public String getShopCountry() {
        return shopCountry;
    }

    public void setShopCountry(String shopCountry) {
        this.shopCountry = shopCountry;
    }

    public String getShopCity() {
        return shopCity;
    }

    public void setShopCity(String shopCity) {
        this.shopCity = shopCity;
    }

    public String getShopAddress() {
        return shopAddress;
    }

    public void setShopAddress(String shopAddress) {
        this.shopAddress = shopAddress;
    }

    public String getLegalPerson() {
        return legalPerson;
    }

    public void setLegalPerson(String legalPerson) {
        this.legalPerson = legalPerson;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }


    public String getBankAccountNo() {
        return bankAccountNo;
    }

    public void setBankAccountNo(String bankAccountNo) {
        this.bankAccountNo = bankAccountNo;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getContactFax() {
        return contactFax;
    }

    public void setContactFax(String contactFax) {
        this.contactFax = contactFax;
    }

    public String getContactEmail() {
        return contactEmail;
    }

    public void setContactEmail(String contactEmail) {
        this.contactEmail = contactEmail;
    }

    public String getContactPersonId() {
        return contactPersonId;
    }

    public void setContactPersonId(String contactPersonId) {
        this.contactPersonId = contactPersonId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getShopCountryName() {
        return shopCountryName;
    }

    public void setShopCountryName(String shopCountryName) {
        this.shopCountryName = shopCountryName;
    }

    public String getShopCityName() {
        return shopCityName;
    }

    public void setShopCityName(String shopCityName) {
        this.shopCityName = shopCityName;
    }

    public String getOldShopName() {
        return oldShopName;
    }

    public void setOldShopName(String oldShopName) {
        this.oldShopName = oldShopName;
    }

    public String getErrFlag() {
        return errFlag;
    }

    public void setErrFlag(String errFlag) {
        this.errFlag = errFlag;
    }

    public String getAccoutSum() {
        return accoutSum;
    }

    public void setAccoutSum(String accoutSum) {
        this.accoutSum = accoutSum;
    }
    
}
